package com.java1412.order.service;

import com.java1412.common.entity.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

/**
 * 定义远程调用接口
 *
 * @author java1412
 * @since 2023-06-09 09:07:36
 */
@FeignClient(value = "mall-goods")
public interface GoodsService {

    @RequestMapping("/api/v1/goods/findByGoodsId")
    public Goods findByGoodsId(@RequestParam("goodsId") Integer goodsId);

    @RequestMapping("/api/v1/goods/findClusterName")
    public String findClusterName();
}
